package com.operation.form;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

import org.springframework.web.multipart.MultipartFile;

public class SuperForm {
	
	Integer user_seq;
	
	TimeZone tz;
	
	SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss");	
	
	String korea_time;


	public String getKorea_time() {
		
		tz = TimeZone.getTimeZone("Asia/Seoul");
		
		mSimpleDateFormat.setTimeZone(tz);		
		Date date = new Date ();
		korea_time = mSimpleDateFormat.format (date);		
		
		return korea_time;
	}

	public void setKorea_time(String korea_time) {
		this.korea_time = korea_time;
	}

	/**
	 * 파일_경로
	 */
	private String file_path = null;
	
	//private String image_prefix = "http://localhost:52013/fileserver/";

	/**
	 * 파일_미리보기_경로
	 */
	private String file_prvw_path = null;
	
	private String file_type = null;
	
	private int topic_seq;
	
	/**
	 * 생성된 primaryKey
	 */
	private int last_id;
	
	private MultipartFile img;
	private MultipartFile prvw_img;
	
	
	public Integer seq =0;
	public Integer max =100;
	
	
	
	public int getTopic_seq() {
		return topic_seq;
	}

	public void setTopic_seq(int topic_seq) {
		this.topic_seq = topic_seq;
	}

	public MultipartFile getImg() {
		return img;
	}

	public void setImg(MultipartFile img) {
		this.img = img;
	}

	public MultipartFile getPrvw_img() {
		return prvw_img;
	}

	public void setPrvw_img(MultipartFile prvw_img) {
		this.prvw_img = prvw_img;
	}

	public Integer getSeq() {
		return seq;
	}
	
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	
	public Integer getMax() {
		return max;
	}
	
	public void setMax(Integer max) {
		this.max = max;
	}


	public int getLast_id() {
		return last_id;
	}

	public void setLast_id(int last_id) {
		this.last_id = last_id;
	}


	public String getFile_path() {
		return file_path;
	}

	public void setFile_path(String file_path) {
		this.file_path = file_path;
	}

	public String getFile_prvw_path() {
		return file_prvw_path;
	}

	public void setFile_prvw_path(String file_prvw_path) {
		this.file_prvw_path = file_prvw_path;
	}

	public String getFile_type() {
		return file_type;
	}

	public void setFile_type(String file_type) {
		this.file_type = file_type;
	}
	
}
